package com.example.design.patterns.冰河.行为模式.状态模式;

import com.example.design.patterns.冰河.行为模式.状态模式.concreteStateSubClasses.Rain;
import com.example.design.patterns.冰河.行为模式.状态模式.concreteStateSubClasses.Sunshine;
import com.example.design.patterns.冰河.行为模式.状态模式.context.Context;

public class Test {
    public static void main(String[] args) {
        Context context = new Context();
        context.setWeather(new Sunshine());
        System.out.println(context.weatherMessage());

        System.out.println("----------------------------------");

        Context context2 = new Context();
        context2.setWeather(new Rain());
        System.out.println(context2.weatherMessage());
    }
}
